@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="newsInfoForm">
            <input type="hidden" id="id" value="${news.id}">
            <input type="hidden" id="modelVal" value="${news.model}">
            <input type="hidden" id="contentVal" value='${news.newsContent}'>
            <div class="row">

                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-1 control-label">标题</label>
                        <div class="col-sm-11">
                            <input class="form-control" id="newsTitle"
                                   name="newsTitle" type="text" value="${news.newsTitle}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">模块类别</label>
                        <#select id="model" name="">
                            @for(model in list){
                            <option value=${model.id}>${model.name}</option>
                            @}
                        </#select>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-1 control-label">内容</label>
                        <div class="col-sm-11">
                            <div id="toolbar" class="editorToolbar">
                            </div>
                            <div id="editor" class="editorText">
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-6 b-r">
                        <#input id="createTime" name="创建时间" underline="true" type="text"
                                value="${news.createTime}"/>
                    </div>
                </div>

            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="NewsInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="NewsInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/backend/news/news_info.js"></script>
<script type="text/javascript" src="//unpkg.com/wangeditor/release/wangEditor.min.js"></script>
<script>
    laydate.render({
        elem: '#createTime'
    });
</script>
@}
